public class Weight {


    public static void main(String[] args) {

//        int arr = new Array([])

        double[] hens = { 3,5,1,3.4,2,50 };
        double sum = 0;
        double avage = 0;
        for (int i = 0; i < hens.length; i++) {
            sum += hens[i];
        }
        avage  = sum/hens.length;
        System.out.println("sum =====>>> "+sum);
        System.out.println("average =====>>> "+avage);
    }


}
